package com.heaven.customerServer.customerController.vo.register;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;

@Data
public class RegisterReq implements Serializable {

    @NotBlank(message = "昵称不能为空")
    @Size(max = 16, message = "昵称长度必须在1-16之间")
    private String nickname;

    @Email(message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 18, message = "密码长度必须在6-16之间")
    private String pwd;

    @NotBlank(message = "密码不能为空")
    private String repwd;

    @NotBlank(message = "验证码不能为空")
    private String checkCode;
}
